import Vue from 'vue'
import VueRouter from 'vue-router'
import Login from './components/Login.vue';
import Test from './components/Test.vue';
import HelloWorld from './components/HelloWorld.vue';

Vue.use(VueRouter)
const routesdd = [
  {
    path:'/',
    component:Login
  },
  {
    path:'/login',
    name:'Login',
    component:Login
  },
  {
    path:'/index',
    name:'Test',
    component:Test
  },
  {
    path:'/hello',
    name:'HelloWorld',
    component:HelloWorld
  }
];

const router = new VueRouter({
  mode:'history',
  routes:routesdd
});
export default router;

